<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Example 45 (ALL) - XML Wrapper Support</title>
<script type="text/javascript" src="../dist/jquery-1.3.1.js"></script>
<script type="text/javascript" src="../dist/flowplayer-3.1.4.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/global.css" />
</head>
<body>

<h2>Example 45 (ALL) - XML Wrapper Support</h2>
<p class="example">
This example illustrates support for the XML Wrapper element of the VAST standard. To see
what an XML wrapper response looks like, cut and paste "<a href='http://localhost/hc/release/bouncingminds.com/flowplayer/openadstreamer/ea-0.3.0/openvideoads.flowplayer.openadstreamer/examples/all-example48.html'>http://static.openvideoads.org/tests/vast-wrapper-test.xml</a>"
into your web browser
</p>
<div id="container">
  <div id="player_row">
     <div id="player-left-619">
	    <a class="player614x345"></a>
	    <div id="container-614x280">
		    <div id="companion-300x250">
		       A COMPANION ADVERTISEMENT<br/>(300x250)<br/>WILL APPEAR IN HERE
	   	 	</div>
	   	 	<div id="filler-310x254">
	   	 	   FILLER SPACE
	   	 	</div>
	   	</div>
   	 </div>
     <div id="player-right-600">
        <div id="companion-160x600">
          A COMPANION ADVERTISEMENT<br/>(160x600)<br/> WILL APPEAR IN HERE
        </div>
     </div>
  </div>
</div>

<script type="text/javascript">
flowplayer("a.player614x345", "../dist/flowplayer-3.1.5.swf", {
    plugins: {
        rtmp: {
            url: "../dist/flowplayer.rtmp-3.1.3.swf"
        },
        rtmpInstream: {
            url: "../dist/flowplayer.rtmp-3.1.3.swf"
        },
        openAdStreamer: {
            url: '../dist/OpenAdStreamer.swf',
//            "url": "/fp-http/OpenAdStreamer.swf",
 
            "shows": {
                "baseURL": "http://streaming.openvideoads.org/shows",
                "streams": [
                    {  
                        "file":"the-black-hole.mp4", 
                        "duration":"00:00:20"
                    }                    
                ]
            },
            
            "ads": {
               "servers": [
                   {
                      "type": "direct",
                      "apiAddress": "http://static.openvideoads.org/tests/vast-wrapper-test.xml",
                   }
               ],
               "displayCompanions": true,
               "restoreCompanions": false,
	           "companions": [
                  { "id":"companion-160x600", "width":"160", "height":"600" },
                  { "id":"companion-300x250", "width":"300", "height":"250" }                  
               ],
               "schedule": [
                  {
                    "zone": "46",
                    "position": "pre-roll"
                  },
                  {
                    "zone": "33",
                    "startTime": "00:00:03",
                    "duration": "00:00:15"
                  },
                  {
                    "zone": "46",
                    "position": "post-roll"
                  }
               ]
            },

            "debug": {
              "levels": "fatal",
              "debugger": "firebug"
            }
        }
    }
});
</script>
<br/>
<p>
The configuration for this example is:
</p>
<div class="codebox">
<pre>
<code class="javascript">
flowplayer("a.player614x345", "../dist/flowplayer-3.1.5.swf", {
    plugins: {
        rtmp: {
            url: "../dist/flowplayer.rtmp-3.1.3.swf"
        },
        rtmpInstream: {
            url: "../dist/flowplayer.rtmp-3.1.3.swf"
        },
        openAdStreamer: {
            url: '../dist/OpenAdStreamer.swf',
 
            "shows": {
                "baseURL": "http://streaming.openvideoads.org/shows",
                "streams": [
                    {  
                        "file":"the-black-hole.mp4", 
                        "duration":"00:00:20"
                    }                    
                ]
            },
            
            "ads": {
               "servers": [
                   {
                      "type": "direct",
                      "apiAddress": "http://static.openvideoads.org/tests/vast-wrapper-test.xml",
                   }
               ],
               "displayCompanions": true,
               "restoreCompanions": false,
               "companions": [
                  { "id":"companion-160x600", "width":"160", "height":"600" },
                  { "id":"companion-300x250", "width":"300", "height":"250" }                  
               ],
               "schedule": [
                  {
                    "zone": "46",
                    "position": "pre-roll"
                  },
                  {
                    "zone": "33",
                    "startTime": "00:00:03",
                    "duration": "00:00:15"
                  },
                  {
                    "zone": "46",
                    "position": "post-roll"
                  }
               ]
            },

            "debug": {
              "levels": "fatal",
              "debugger": "firebug"
            }
        }
    }
});
</code>
</pre>
</div>
<script type="text/javascript" src="js/tracking.js">
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10158120-3");
if(TRACKING_TURNED_ON) {
	pageTracker._trackPageview();
}
} catch(err) {}
</script>
</body>
</html>